﻿<Controls:MetroWindow x:Class="ChoWorkflowDashboard.ChoInputWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
        xmlns:local="clr-namespace:ChoWorkflowDashboard"
        Title="ChoMultilineInputWindow" Height="138" Width="377" ResizeMode="CanResize" ShowInTaskbar="False" 
        Topmost="False"
        BorderBrush="{DynamicResource AccentColorBrush}"
        BorderThickness="1" ShowMaxRestoreButton="false" ShowMinButton="false"
                      >
    <DockPanel LastChildFill="True" FocusManager.FocusedElement="{Binding ElementName=txtInput}">
        <Label DockPanel.Dock="Top" Content="" Name="lblInput" Margin="5,5,5,5" />
        <Grid DockPanel.Dock="Bottom" Margin="5,0,5,5">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="80" />
            </Grid.ColumnDefinitions>

            <Button Grid.Column="1" Content="OK" Height="23" IsDefault="True" Name="btnOK" TabIndex="50" Tag="4" Width="75" Click="btnOK_Click" Canvas.Left="201" />
            <Button Grid.Column="2" Content="Cancel" Height="23" IsCancel="True" Name="btnCancel" TabIndex="51" Tag="5" Width="75" Click="btnCancel_Click" Canvas.Left="281" />
        </Grid>
        <xctk:WatermarkTextBox Name="txtInput" AcceptsReturn="False" AcceptsTab="False" VerticalScrollBarVisibility="Hidden" TabIndex="1" HorizontalContentAlignment="Left" Margin="5,0,5,5"
                               local:Masking.Mask="^[A-Za-z0-9_]*$" ToolTip="Accepts only [A-Za-z0-9] characters" />
    </DockPanel>
</Controls:MetroWindow>
